home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / nn.zip / M-VAX.H < prev    next >
C/C++ Source or Header  |  1989-06-28  |  789b  |  34 lines

  1.  
  2. /************** Machine (and compiler) dependent definitions. **************
  3.  *
  4.  *    Define appropriate types for the following ranges of integer
  5.  *    variables.  These are processor & compiler dependent, but the
  6.  *    distributed definitions will probably work on most systems.
  7.  */
  8.  
  9.  
  10.  
  11. /*      MACHINE TYPE    DEFINED TYPE        VALUE RANGE    */
  12.  
  13. typedef unsigned char    int8;        /*        0 ..     255 */
  14. typedef short        int16;        /*  -10,000 ..  10,000 */
  15. typedef long        int32;        /* -100,000 .. 100,000 */
  16. typedef unsigned long    uint32;        /*       0 ..  2^31-1 */
  17.  
  18.  
  19. /*
  20.  *    VAX/BSD has varargs.h but not v[s]printf()
  21.  */
  22.  
  23. #define NO_VARARGS 
  24.  
  25.  
  26. /*
  27.  *    The VAX does not have longs in network byte order
  28.  */
  29.  
  30. #undef NETWORK_BYTE_ORDER    /* we need to use ntohl/htonl */
  31. #ifdef NETWORK_DATABASE
  32. #include <netinet/in.h>
  33. #endif
  34.